import request from '@/util/request'

// 获取统计数据
export const fetchStats = () => {
    return request({
        url: '/api/stats',
        method: 'get'
    })
}

// 获取欺诈趋势
export const fetchFraudTrend = () => {
    return request({
        url: '/api/fraud-trend',
        method: 'get'
    })
}

// 获取年龄分布
export const fetchAgeDistribution = () => {
    return request({
        url: '/api/age-distribution',
        method: 'get'
    })
}
